﻿@model string
<div class="image-upload" data-href="@Url.Content("~/Uploads/")">
    <img alt="аватар" src="<%if(Avatar.length==0){%>#<%}else{%>@(Url.Content("~/Uploads/"))<%=Avatar%><%}%>"/>
    <span data-href="@Url.Action(MVC.Shared.UploadImage())" >
        <input type="file" value=""/>
        <span>Upload</span>
    </span>
    <input  type="hidden" name="@ViewData.ModelMetadata.PropertyName" value="<%=Avatar%>"/>
</div>